home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group95b.txt / 000131_icon-group-sender _Mon Aug 21 15:25:45 1995.msg < prev    next >
Internet Message Format  |  1995-09-18  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Mon, 21 Aug 1995 13:13:47 MST
  2. To: icon-group@cs.arizona.edu
  3. Date: Mon, 21 Aug 1995 15:25:45 GMT
  4. From: mshapiro@nosc.mil (Michael D Shapiro)
  5. Message-Id: <1995Aug21.152545.21732@nosc.mil>
  6. Organization: NCCOSC RDT&E Division, San Diego, CA
  7. Sender: icon-group-request@cs.arizona.edu
  8. References: <tydemanDDIn2A.A06@netcom.com>
  9. Subject: Re: SNOBOL4 and printing on same line
  10. Errors-To: icon-group-errors@cs.arizona.edu
  11.  
  12. In article <tydemanDDIn2A.A06@netcom.com>,
  13. Fred Tydeman <tydeman@netcom.com> wrote:
  14. >
  15. >The SNOBOL4 Programming Language, second edition ("green book") on
  16. >page 167-168 talk about output associations and carriage control.
  17. >In looking at a Fortan manual, if the first character printed on a
  18. >line is a '1', then a new page eject is done before printing.  
  19. >A '0' causes double spacing, a '+' suppresses spacing before
  20. >printing, eg, prints two successive records on the same line.
  21. >Anything else causes a single space before printing.
  22. >
  23. >So you need to print a '+' as the first character on a line to
  24. >print the next record on the same line.  
  25. >
  26. >In SNOBOL4 do
  27. >  OUTPUT('OUTPUT',6,'(1H+,132A1)')
  28. >in place of
  29. >  OUTPUT('OUTPUT',6,'(1X,132A1)')
  30.  
  31. That works _if_ you have a SNOBOL4 implementation that uses (or
  32. simulates) the FORTRAN 66 standard for output.  We used it because it
  33. was the only reasonably portable standard available at the time.  Some
  34. later implementations of SNOBOL4 use other stream-oriented I/O models
  35. (in place of the line-printer-oriented scheme).  For some of them, the
  36. FORTRAN "carriage control" option does not work.
  37. --
  38. Michael D. Shapiro, Ph.D.                   Internet: mshapiro@nosc.mil
  39. Code 4123, NCCOSC RDT&E Division (NRaD)              San Diego CA 92152
  40. Voice: (619) 553-4080         FAX: (619) 553-4808         DSN: 553-4080
  41.